package com.itheima.demo1_static修饰成员变量;

public class Test {
    public static void main(String[] args) {
        //创建Chinese 对象
        Chinese c1 = new Chinese("张三","中华人民共和国");
        System.out.println("姓名是："+c1.name+",国籍是："+c1.country);

        System.out.println("--------");

        //创建Chinese 对象
        Chinese c2 = new Chinese();
        System.out.println("姓名是："+c2.name+",国籍是："+c2.country);

        System.out.println("--------");

        c2.country = "中国";
        System.out.println("姓名是："+c1.name+",国籍是："+c1.country);
        System.out.println("姓名是："+c2.name+",国籍是："+c2.country);

        System.out.println("--------");
        System.out.println(Chinese.country);
		
		
        System.out.println("123456");
		
    }
}

